import Login from '../pages/Login';
import List from '../pages/admin/products/list';
import Editor from '../pages/admin/products/edit';
import Notices from '../pages/admin/products/notices';
import DashBoard from '../pages/admin/dashboard/index';
import NotFind  from '../pages/error/notFind';
export const mainRoutes=[{
    path: '/login',
    component: Login
},
{
    path: '/404',
    component: NotFind
},
];
export const adminRoutes=[
    {
    path: '/admin/index',
    component: DashBoard,
    exact: true,
    title:'看板',
    isShow:true,
    icon:'PieChartTwoTone'
},
    {
    path:'/admin/list',
    component: List,
    exact: true,
    title: '商品列表',
    isShow:true,
    icon: 'ProfileTwoTone'
},
{
    path: '/admin/edit/:id?',
    component: Editor,
    exact: true,
    title: '编辑',
    isShow: false,
    icon:'EditTwoTone'
},
{
    path: '/admin/notices',
    component: Notices,
    isShow: false
},

];